package ext.tianma.part.finishedProduct.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class AttrRuleVo  implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Map<String,String> enumMap = new HashMap<String,String>();//枚举值列表
	private Integer length;//长度
	private List<String> legalValueList = new ArrayList<>();//合法值列表
	private List<String> suggestedValuesList = new ArrayList<>();//建议值列表
	private Boolean singleValued = true;//是否单值
	private Boolean required = false;//是否必须的
	private String dataType;//String,TimestampDefinition
	private String displayName;//属性显示名称
	
	public Map<String, String> getEnumMap() {
		return enumMap;
	}
	public void setEnumMap(Map<String, String> enumMap) {
		this.enumMap = enumMap;
	}
	public Integer getLength() {
		return length;
	}
	public void setLength(Integer length) {
		this.length = length;
	}
	public List<String> getLegalValueList() {
		return legalValueList;
	}
	public void setLegalValueList(List<String> legalValueList) {
		this.legalValueList = legalValueList;
	}
	public List<String> getSuggestedValuesList() {
		return suggestedValuesList;
	}
	public void setSuggestedValuesList(List<String> suggestedValuesList) {
		this.suggestedValuesList = suggestedValuesList;
	}
	public Boolean getSingleValued() {
		return singleValued;
	}
	public void setSingleValued(Boolean singleValued) {
		this.singleValued = singleValued;
	}
	public Boolean getRequired() {
		return required;
	}
	public void setRequired(Boolean required) {
		this.required = required;
	}
	public String getDataType() {
		return dataType;
	}
	public void setDataType(String dataType) {
		this.dataType = dataType;
	}
	public String getDisplayName() {
		return displayName;
	}
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	@Override
	public String toString() {
		return "AttrRuleVo [enumMap=" + enumMap + ", length=" + length
				+ ", legalValueList=" + legalValueList
				+ ", suggestedValuesList=" + suggestedValuesList
				+ ", singleValued=" + singleValued + ", required=" + required
				+ ", dataType=" + dataType + ", displayName=" + displayName
				+ "]";
	}
	
	
}
